package com.jl.card.parse.part.simpleTLV;

import com.jl.card.util.SimpleTag;

public class SimpleTagConstants {
	public final static SimpleTag TAG_CommandDetail = new SimpleTag((byte) 0x81, true);
	public final static SimpleTag TAG_DeviceIdentity = new SimpleTag((byte) 0x82, true);
	public final static SimpleTag TAG_Result = new SimpleTag((byte) 0x83, true);
	public final static SimpleTag TAG_AlphaIdentifier = new SimpleTag((byte) 0x85, true);
	public final static SimpleTag TAG_Address = new SimpleTag((byte) 0x86, true);
	public final static SimpleTag TAG_SMSTPDU = new SimpleTag((byte) 0x8B, true);
	public final static SimpleTag TAG_TextString = new SimpleTag((byte) 0x8D, true);
	public final static SimpleTag TAG_Item = new SimpleTag((byte) 0x8F, true);
	public final static SimpleTag TAG_ItemIdentifier = new SimpleTag((byte) 0x90, true);
	public final static SimpleTag TAG_ResponseLength = new SimpleTag((byte) 0x91, true);
	public final static SimpleTag TAG_CDMASMSTPDU = new SimpleTag((byte) 0xC8, true);

	public static String getTagName(SimpleTag tag){
		if(tag.equals(TAG_CommandDetail)){
			return "Command details";
		}
		if(tag.equals(TAG_DeviceIdentity)){
			return "Device identity";
		}
		if(tag.equals(TAG_Result)){
			return "Result";
		}
		if(tag.equals(TAG_TextString)){
			return "Text string";
		}
		if(tag.equals(TAG_Item)){
			return "Item";
		}
		if(tag.equals(TAG_ItemIdentifier)){
			return "Item identifier";
		}
		if(tag.equals(TAG_ResponseLength)){
			return "Response length";
		}
		if(tag.equals(TAG_AlphaIdentifier)){
			return "Alpha identifier";
		}
		if(tag.equals(TAG_SMSTPDU)){
			return "GSM SMS TPDU";
		}
		if(tag.equals(TAG_CDMASMSTPDU)){
			return "CDMA SMS TPDU";
		}
		if(tag.equals(TAG_Address)){
			return "Address";
		}
		return "UNKNOWN SIMPLE TAG";
	}
}
